package com.mhys.ynnz_ssm.mybatis.dao.user;

import com.mhys.ynnz_ssm.business.user.dto.MhysUserDO;
import com.mhys.ynnz_ssm.business.user.dto.MhysUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户管理模块-dao层接口
 * 2024/6/11
 */
@Mapper
public interface UserDao {
    MhysUserDO getUserByID(String userID);

    int addUser(@Param("userVO") MhysUserVO userVO);

    List<MhysUserDO> getUserPagers(@Param("userVO") MhysUserVO userVO);

    int updateUser(@Param("userVO") MhysUserVO userVO);

    int deleteUser(@Param("idsList") List<String> idsList);

    List<MhysUserDO> getUserByName(String userName);

    int login(@Param("userName") String userName,@Param("pwd") String pwdMd5Hex);
}
